﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewsMine.DomainObjects
{
    [Serializable]
    public class FacebookAccount
    {
        public FacebookAccount()
        {
            PageInformation = new List<FacebookPage>();
        }

        public string Name { get; set; }
        public string Id { get; set; }

        public string AccessToken { get; set; }
        public DateTime TokenCreatedTime { get; set; }
        public DateTime TokenExpiryTime { get; set; }

        // page information will be saved with id and page name.....
        public List<FacebookPage> PageInformation { get; set; }
    }

    [Serializable]
    public class FacebookPage
    {
        public string Name { get; set; }
        public string Id { get; set; }
        public string AccessToken { get; set; }
        public DateTime TokenCreatedTime { get; set; }
        public DateTime TokenExpiryTime { get; set; }
    }

}
